<?php

use yii\helpers\Html;
use backend\widgets\ActiveForm;
use backend\models\Category;

/* @var $this yii\web\View */
/* @var $model backend\models\Category */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="row">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-content">
                <?php $form = ActiveForm::begin(); ?>

                <?= $form->field($model, 'parent_id')
                    ->label(yii::t('app', 'Parent Id'))
                    ->dropDownList(Category::getCategoriesName()) ?>

                <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>

                <?= $form->field($model, 'alias')->textInput(['maxlength' => true]) ?>

                <?= $form->field($model, 'sort')->textInput() ?>

                <?= $form->field($model, 'remark')->textInput(['maxlength' => true]) ?>

                <div class="form-group">
                    <?= $form->defaultButtons() ?>
                </div>

                <?php ActiveForm::end(); ?>
            </div>
        </div>
    </div>
</div>
